$.ajax({
  type: "GET",
    url: "/api/order/list",
    success: function (res) {
        console.log(res);
        var htmlStr = template("tpl-orders", res.data);
        $('.orders').html(htmlStr)
  }
});